/*
 * PanelStackBean.java
 * 
 * Copyright (c) 2011 Administrator. 
 * 
 * This file is part of RMS.
 * 
 * RMS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * RMS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with RMS.  If not, see <http ://www.gnu.org/licenses/>.
 */
package com.itrustsolution.rms.managedbean;

/**
 * <p>
 * The PanelStackBean is responsible for storing the name of the panel in the
 * panelStack which should be displayed when rendered. The default panel stack
 * panel name is "splash".
 * </p>
 * <p>
 * If a selectedPanel name is not found in the panel stack the panelStack
 * comonent will not change the current selected PanelStack
 * </p>
 * @author Administrator
 */
public class PanelStackBean {

    // default panel name
    private String selectedPanel = "splash";

    /**
     * Gets the name of the selected panel stack.
     * @return selected panel stack name
     */
    public String getSelectedPanel() {
        return selectedPanel;
    }

    /**
     * 
     * @param selectedPanel
     */
    public void setSelectedPanel(String selectedPanel) {
        this.selectedPanel = selectedPanel;
    }
}
